/*
 * @Author: chiangbt@geoportal.cn 
 * @Date: 2019-05-15 15:18:10 
 * @Last Modified by: chiangbt@geoportal.cn
 * @Last Modified time: 2019-05-15 15:19:45
 */
const express = require('express');
const router = express.Router();

const jwt = require('express-jwt');
const profileController = require('../controllers/profileController');


router.post('/profile', jwt({
    secret: process.env.SecretOrPublicKey
}), profileController.create_profile);

router.get('/profile/:id', profileController.profile_get_by_id);

router.patch('/profile/:id', jwt({
    secret: process.env.SecretOrPublicKey
}), profileController.update_profile);

module.exports = router;